#pragma once
#include <map>
#include "Singleton.h"
#include "agency.h"


class AgencyMgr
{
public:
    AgencyMgr();
    virtual ~AgencyMgr();

public:
    static AgencyMgr* Instance()
	{
		return CSingleton<AgencyMgr>::Instance();
	}

public:
    stAgency* Get(const std::string& agent);
    bool Update(stAgency&& agency);
    bool Update(const stAgency& agency);

private:
    std::map<std::string, stAgency> m_mgr;
};











